package net.zhengxinyun.performance.service.login;

import net.zhengxinyun.performance.entity.MenuLists;
import net.zhengxinyun.performance.entity.RolePerEntity;
import net.zhengxinyun.performance.filter.RolePerFilter;

import java.util.List;

public interface RolePerService {

    int deleteByPrimaryKey(Long id);

    int insert(RolePerEntity record);

    int insertSelective(RolePerEntity record);

    RolePerEntity selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table inv_user
     *
     * @mbg.generated Tue Oct 30 11:56:04 CST 2018
     */
    int updateByPrimaryKeySelective(RolePerEntity rolePerEntity);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table inv_user
     *
     * @mbg.generated Tue Oct 30 11:56:04 CST 2018
     */
    int updateByPrimaryKey(RolePerEntity record);

    List<RolePerFilter> query(RolePerFilter rolePerEntity);

    Integer queryForCount(RolePerFilter rolePerEntity);

    RolePerFilter selectUserRight(Long id );


    MenuLists getMenus(String code);
}
